package Controller.Singer;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import Bean.SingerBean;
import Dao.SingerDao;

public class singerBoardListController implements Controller{
	private SingerDao dao;
	public void setDao(SingerDao dao) {
		this.dao = dao;
	}
	@Override
	public ModelAndView handleRequest(HttpServletRequest req,
			HttpServletResponse arg1) throws Exception {

		System.out.println("가수 게시판");
		List<SingerBean> singerList = dao.SingerList();
		System.out.println("다오 작업 완료");
		ModelAndView mav = new ModelAndView();
		mav.setViewName("SingerList");
		mav.addObject("sList", singerList);
		return mav;
	}
}
